package com.song.sample.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

/**
 * @desc: jsp页面demo
 * @author: WUSONG
 * @date: 2018/9/17 0017下午 2:56
 */
@Controller
public class HelloController {

    @RequestMapping(value = "/", method = RequestMethod.GET)
    public String hello(Map<String, Object> model){
        model.put("hello", "Hello, world !");
        return "index";
    }

}
